// 示例: 简单的轮播图脚本
let currentIndex = 0;
const images = document.querySelectorAll('.featured-products img');
const totalImages = images.length;

function showImage(index) {
    images.forEach((img, i) => {
        if(i === index) {
            img.style.display = 'block';
        } else {
            img.style.display = 'none';
        }
    });
}

function nextImage() {
    currentIndex = (currentIndex + 1) % totalImages;
    showImage(currentIndex);
}

setInterval(nextImage, 3000);

showImage(currentIndex);